package jp.java.test1.pkg20_29.test27;

public class Main {
	public static void main(String[] args) {
		Module module = new Outer().create();
		module.method(3);
	}
}

interface Module {
	void method(int n);
}
class Outer {
	private Module module = new Module() {
		int [] test = {1,2};
		private int num;
		{
			this.num = 2;
		}
		
		@Override
		public void method(int n) {
			System.out.println(n * num);
		}
	};
	
	
	public Module create() {
		return this.module;
	}
}